package com.hao.imserver.dto;

public class ResultFactory {
    public static Result error(String msg) {
	return new Result(-1, null, msg);
    }
    
    public static Result error() {
	return error(null);
    }
    
    public static Result ok(Object data) {
	return new Result(0, data, null);
    }
    
    public static Result ok() {
	return ok(null);
    }
}
